{% extends 'usercenter-base.html' %}
{% block title %}我的课程- 慕学在线网{% endblock %}
{% block custom_bread %}
     <section>
        <div class="wp">
            <ul  class="crumbs">
                <li><a href="{% url 'index' %}">首页</a>></li>
                <li><a href="{% url 'users:info' %}">个人中心</a>></li>
                <li>我的授课</li>
            </ul>
        </div>
    </section>
{% endblock %}

{% block rigt_form %}
       <div class="right" >
		<div class="personal_des Releasecont">
			<div class="head">
				<h1>我的授课</h1>
			</div>
		</div>
		<div class="personal_des permessage">
			<div class="companycenter">
				<div class="group_list brief">
                    {% for user_course in teach_course_list %}
                    <div class="module1_5 box">
                            <a href="{% url 'course:detail' user_course.id %}">
                                <img width="214" height="190" class="scrollLoading" src="{{ user_course.image.url }}"/>
                            </a>
                            <div class="des">
                                <a href="{% url 'course:detail' user_course.id %}"><h2>{{ user_course.name }}</h2></a>
                                <span class="fl">课时：<i class="key">{{ user_course.learn_times }}</i></span>
                                <span class="fr">学习人数：{{ user_course.students }}</span>
                            </div>
                            <div class="bottom">
                                <span class="fl">{{ user_course.course_org.name }}</span>
                                <span class="star fr  notlogin" data-favid="15">{{ user_course.fav_nums }}</span>
                            </div>
                        </div>
                    {% endfor %}
				</div>
            <div class="pageturn">
                    <ul class="pagelist">
             {% if teach_course_list.has_previous  %}
                 <li class="long"><a href="?page={{teach_course_list.previous_page_number}}">上一页</a></li>
            {%endif%}

                {% for i in   teach_course_list.paginator.page_range %}
                 {%if i == teach_course_list.number  %}
                     <li class="active"><a href="?page={{ i }}">{{i }}</a></li>
                    {% else %}
                      <li><a href="?page={{ i }}" class="page">{{ i }}</a></li>
                    {% endif %}
                {% endfor %}
                {% if teach_course_list.has_next  %}
                 <li class="long"><a href="?page={{teach_course_list.next_page_number}}">下一页</a></li>
            {%endif%}
            </ul>
                 </div>
			</div>
		</div>
	</div>
{% endblock %}

